home *** CD-ROM | disk | FTP | other *** search
- CARTPOL(3C) Last changed: 3-22-99
-
-
- NNAAMMEE
- ppoollaarr - Functions for the C++ Complex Math Library
-
- SSYYNNOOPPSSIISS
- ##iinncclluuddee <<ccoommpplleexx..hh>>
-
- ccllaassss ccoommpplleexx {{
-
- ppuubblliicc::
-
- ffrriieenndd ddoouubbllee aabbss((ccoommpplleexx));;
- ffrriieenndd ddoouubbllee aarrgg((ccoommpplleexx));;
- ffrriieenndd ccoommpplleexx ccoonnjj((ccoommpplleexx));;
- ffrriieenndd ddoouubbllee iimmaagg((ccoommpplleexx));;
- ffrriieenndd ddoouubbllee nnoorrmm((ccoommpplleexx));;
- ffrriieenndd ccoommpplleexx ppoollaarr((ddoouubbllee,, ddoouubbllee == 00));;
- ffrriieenndd ddoouubbllee rreeaall((ccoommpplleexx));;
-
- }};;
-
- IIMMPPLLEEMMEENNTTAATTIIOONN
- IRIX systems (--oo3322 ABI only)
-
- DDEESSCCRRIIPPTTIIOONN
- NOTE: This man page applies only to the --oo3322 ABI. The MIPSpro
- --nn3322 and --6644 ABIs support the template-based complex class which
- is included in the C++ standard library and is automatically
- loaded by the MIPSpro C++ compiler. The --llmm option must still be
- used to link the math library.
-
- The following functions are defined for ccoommpplleexx, where:
- - _d, _m, and _a are of type iinntt and
- - _x and _y are of type ccoommpplleexx.
-
- _d == aabbss((_x)) Returns the absolute value or magnitude of _x.
-
- _d == nnoorrmm((_x)) Returns the square of the magnitude of _x. It is faster
- than aabbss, but more likely to cause an overflow error.
- It is intended for comparison of magnitudes.
-
- _d == aarrgg((_x)) Returns the angle of _x, measured in radians in the
- range --n to -n.
-
- _y == ccoonnjj((_x)) Returns the complex conjugate of _x. That is, if _x is
- ((rreeaall,, iimmaagg)), then ccoonnjj((_x)) _i_s ((rreeaall,, --iimmaagg)).
-
- _y == ppoollaarr((_m,, _a))
- Creates a complex given a pair of polar coordinates,
- magnitude _m, and angle _a, measured in radians.
-
- _d == rreeaall((_x)) Returns the real part of _x.
-
- _d == iimmaagg((_x)) Returns the imaginary part of _x.
-
- SSEEEE AALLSSOO
- ccoommpplleexx(3C), ccppllxxeerrrr(3C), ccppllxxooppss(3C), ccppllxxeexxpp(3C), ccppllxxttrriigg(3C)
-
- This man page is available only online.
-